<?php
/**
 * created by zzy
 * date: 2017/10/24 9:40
 */
namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class QrcodeRoute
{
    public function map(Router $router)
    {

        $router->group(['namespace' => 'Qrcode\Controllers', 'prefix'=>'qrcode'], function ($router) {

            //通用扫描
            $router->any('common', 'IndexController@common');//通用扫描
            $router->any('check-empty', 'IndexController@checkEmpty');//获取二维码的类型
            $router->any('in', 'IndexController@in');//入库扫描
            $router->any('create', 'IndexController@create');
            $router->any('add', 'IndexController@add');
            $router->any('product-list', 'ProductController@lists');
            $router->any('product-out', 'ProductController@out');//出库
            $router->any('product-in', 'ProductController@in');//入库
            $router->any('binding-product', 'BindingController@index');//绑定材料
            $router->any('binding-confirm', 'BindingController@confirm');//绑定物品信息
        });
    }
}